package skipList_01;
/**
 * @author Tobias Hardes
 * Jul 28, 2014
 * 10:37:18 PM
 */
public class SkipListNode {
	private SkipListNode right;
    private SkipListNode down;
    private int level;
    private int element;
    private double functionValue;
    private boolean searchPath; //Identifies nodes that are important for the search path


	public SkipListNode(int x)
    {
        this(x, null, null,0);
    }
    public SkipListNode(int x, SkipListNode rt, SkipListNode dt, int level)
    {
    	this.element = x;
        this.right = rt;
        this.down = dt;
        this.level = level;
   }
    
    
	public boolean isSearchPath() {
		return searchPath;
	}
	public void setSearchPath(boolean searchPath) {
		this.searchPath = searchPath;
	}
    public SkipListNode getRight() {
		return right;
	}
	public void setRight(SkipListNode right) {
		this.right = right;
	}
	public SkipListNode getDown() {
		return down;
	}
	public void setDown(SkipListNode down) {
		this.down = down;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public int getElement() {
		return element;
	}
	public void setElement(int element) {
		this.element = element;
	}
	public double getFunctionValue() {
		return functionValue;
	}
	public void setFunctionValue(double functionValue) {
		this.functionValue = functionValue;
	}
}
